package com.ideyatech.errorhandling.listener;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * Application Lifecycle Listener implementation class MySessionListener
 *
 */
public class MySessionListener implements HttpSessionListener {
	private Long id;
	
    public void sessionCreated(HttpSessionEvent arg0) {
    	arg0.getSession().setAttribute("id", id);
    }

    public void sessionDestroyed(HttpSessionEvent arg0) {
    	id = null;
    }
	
}
